/**
*Let you paint any shapes
*/
package school30.ui;

public class Painter {
	private Color[][] sprite;
	public Painter(Color[][] __sprite) {
		sprite = __sprite;
	}
	public void drawRectangle(int x, int y, int w, int h, Color c) {
		if (x < 0 || y < 0 || y + h >= sprite.length || x + w >= sprite[0].length)
			return;
		for (int i = y; i < y + h; ++i)
			for (int j = x; j < x + w; ++j)
				sprite[i][j] = c;
	}
}

